#ifndef _STATIC_H_
#define _STATIC_H_

#include <d3dx9.h>
#include "sprite.h"
#define DIS 16
#include "QuadTree.h"
extern int time;
extern CObjects * ArrayObj[1000];
extern QuadTree * cTree;
extern QuadTree * qTree;
extern QuadTree * mTree;
extern QuadTree * iTree;
extern LPDIRECT3DSURFACE9 _BackBuffer;
extern int ArrayIndex;


extern CSprite * StaticPic;
extern 	LPD3DXSPRITE SpriteHandlerSP;
extern CSprite * EnemiesPic;
extern LPD3DXSPRITE SpriteHandlerEP;
extern CSprite * BulletPic;
extern LPD3DXSPRITE SpriteHandlerBP;
extern CSprite * ItemPic;
extern LPD3DXSPRITE SpriteHandlerIP;
extern CSprite * FPic;
extern LPD3DXSPRITE SpriteHandlerFP;
extern CSprite * overPic;
extern LPD3DXSPRITE SpriteHandlerOP;
extern CSprite * NumberPic;
extern LPD3DXSPRITE SpriteHandlerNP;
extern CSprite * StatusPic;
extern 	LPD3DXSPRITE SpriteHandlerStatusP;
extern int scr_x;
extern int scr_y;
void LoadStaticPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadEnemiesPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadBulletPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadItemPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadFinishPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadoverPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadNumberPic(LPDIRECT3DDEVICE9 d3ddv);
void LoadStatusPic(LPDIRECT3DDEVICE9 d3ddv);
#endif